package com.tlgen.coopera.config.registry;

import com.tlgen.coopera.runner.MyDelayTask;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.DelayQueue;

/*
 *@title MyConfig
 *@description
 *@author ta151486
 *@version 1.0
 *@create 2023/12/14 9:54
 */
@Configuration
public class DelayConfig {

    @Bean
    DelayQueue<MyDelayTask> delayQueue() {
        return new DelayQueue<MyDelayTask>();
    }

}
